package com.project.estate.commons.config;


public class ResultTool {

    public static JsonResult success(Object data) {
        return new JsonResult(data);
    }

    public static JsonResult fail(int code, String error) {
        return new JsonResult(code, error);
    }
}
